var IMAGE_SERVER = "http://pics.ebaystatic.com/aw/pics/"; var THUMB_PATH = "http://thumbs.ebaystatic.com/pict/"; var isEnding = false; var theDate = new Date(); var eBayDate = new Date(theDate.getTime() + theDate.getTimezoneOffset() * 60000); var eBayTimeOffset = 25200000; var errorCode = 0; var _sniplet = ""; var priceLabel = "Price"; var productLabel = "Product"; var pictureLabel = "Picture"; var timeLabel = "Time Left"; var bidsLabel = "Bids"; var headerColor = "#FFFFCC"; var borderColor = "#FFCC00"; var titleColor = "#FFCE63"; var fontSize = "-1"; var fontFace = "Arial, Helvetica, sans-serif"; var fontColor = "#000000"; var endColor = "#FF0000"; var trackingProvider = "http://www.qksrv.net/click-1467662-9254938?loc="; var linkTarget = "_self"; var viHref = "http://cgi.ebay.com/ws/eBayISAPI.dll%3FViewItem%26item%3D"; var theWorldsMarketplace = "The World's Online Marketplace(TM)"; var theDisclaimer = "disclaimer"; var ebayHome = "http://pages.ebay.com/"; var disclaimerDomain = "http://pages.ebay.com/"; var ebayHomeLogoSm = "http://pics.ebaystatic.com/aw/pics/api/MrktPlcLogoStrspnt_108x45.gif"; var ebayHomeLogoLg = "http://pics.ebaystatic.com/aw/pics/api/MrktPlcLogoLtrspnt_144x59.gif"; var searchLink = "http://search.ebay.com/ws/search/SaleSearch?ht=0&sagallery=1&satitle=Marx&sosortorder=1&sosortproperty=1&sotextsearched=1"; var tableWidth = 570; var tableHeight = 0; var dLabel = "d" + " "; var hLabel = "h" + " "; var mLabel = "m" + " "; var sLabel = "s"; var itemCount = 2495; var varItemCount = itemCount; var searchLinkString = "'View all ' + varItemCount + ' items on eBay'"; var ekTitle = "Marx"; var ekTitleFontSize = "3"; var ekTitleFontFace = "Arial, Helvetica, sans-serif"; var isPrvdMediaPlex= false; var isPrvdCJ= true; var trackingID= "1467662"; var adsServed=false; var t = new Date(); var cacheBuster = escape(t.toGMTString()); var sid = "Marx"; var binIcon = ""; function _alert(str) { // alert(str); } function _genLink(href, caption) { var link = ""; if (isPrvdMediaPlex) { if (adsServed) { link = "" + caption + ""; _alert(link); return link; } function _genItemLink(itemId, title) { var link = ""; if (isPrvdMediaPlex) { if (adsServed) { link = "" + title + ""; } else { link = "" + title + ""; } _alert(link); return link; } function _docWrite(str) { _sniplet += str; if (fooStr) alert(str); } var fooStr = false; function _getSniplet() { _eBaySniplet(); return _sniplet; } function _write(str) { _docWrite('' + str + ''); } function _writeWithColor(str, textColor) { _docWrite('' + str + ''); } function _spacer(w, h) { return ''; } function _cleanTitle(str) { var title = new String(str); return title.replace(/\*/g, """); } function _rowDiv(colSpan) { _docWrite('' + _spacer("100%", 2) + ''); _docWrite('' + _spacer("100%", 1) + ''); _docWrite('' + _spacer("100%", 2) + ''); } function _tracking() { //alert("isPrvdMediaPlex" + isPrvdMediaPlex + " adsServed: " + adsServed); var str = ""; if (isPrvdMediaPlex) { if (adsServed) { str = ''; } else { str = ''; } } return str; } function _header() { var imgHeight = 45; _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); if (tableWidth < 250) { imgHeight = 45; _docWrite('
' + _spacer(1, 1) + _tracking() + ''+ _spacer((tableWidth - 2), 1) + '' + _spacer(1, 1) + '
'); _docWrite(_genLink(ebayHome, "\"eBay")); } else { imgHeight = 59; _docWrite('
'); _docWrite(_genLink(ebayHome, "\"eBay")); } _docWrite('
'); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite('
' + _spacer(1, 1) + ''); _docWrite(''+ _spacer(5, 1)); _docWrite(''+ekTitle+''); _docWrite('' + _spacer(1, 1) + '
'); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); disClaimerHelper(); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite('
' + _spacer(1, 1) + '' + _spacer(5, 1) + ''); /* _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite(''); _docWrite('
' + _spacer(1, 1) + ''); _docWrite(''); _docWrite(''+ekTitle+''); _docWrite('' + _spacer(1, 1) + '
'); */ _docWrite(''); } function _footer(disClaimerHelper) { _docWrite('
'); _docWrite('
' + _spacer(5, 1) + '' + _spacer(1, 1) + '
' + _spacer(1, 1) + '' + _spacer("100%", 1) + '' + _spacer(1, 1) + '
' + _spacer("100%", 1) + '
'); } function _disclaimer(colSpan, disclaimer) { _docWrite('' + _spacer(1, 1) + ''); _docWrite(''); _docWrite(''); if (errorCode > 0) { _docWrite(''); } else { _docWrite(''); if (disclaimer && itemCount > 0) { _docWrite(''); } _docWrite(''); } _docWrite('
' + errorCode + '' + _spacer(10, 1) + ''); if (itemCount > 0) { _write(_genLink(escape(searchLink), eval(searchLinkString) )); } else { _write(_spacer(1, 1)); } _docWrite(''); _write(_genLink(escape(disclaimerDomain + "help/community/editorkitlegal.html"), '' + theDisclaimer + '')); _docWrite('' + _spacer(10, 1) + '
'); _docWrite(''); _docWrite('' + _spacer(1, 1) + ''); } function _worldMarketPlaceLink() { itemCount = 0; _docWrite("
" + _spacer(5,5) + "

"); _docWrite(_genLink(ebayHome, theWorldsMarketplace)); _docWrite("

"); } function _padNumber(theNumber) { if (theNumber < 10) return "0" + theNumber; return theNumber; } function _getTimeLeft(itemDate) { isEnding = false; //reset global for font color var offSetTime = itemDate.getTime() + eBayTimeOffset; //offset for pst. //var offSetTime = itemDate.getTime() ; var diffTime = offSetTime - eBayDate.getTime(); var seconds = Math.floor(diffTime / 1000) % 60; var minutes = Math.floor(diffTime / (60 * 1000)) % 60; var hours = Math.floor(diffTime / (60 * 60 * 1000)) % 24; var days = Math.floor(diffTime / (24 * 60 * 60 * 1000)); if (diffTime < 3600000 /* msec */) isEnding = true; // set global for font color var timeLeft = _spacer(8, 1); if (days > 0) { timeLeft = timeLeft + days + dLabel + _padNumber(hours) + hLabel + _padNumber(minutes) + mLabel; } else if (hours > 0) { timeLeft = timeLeft + hours + hLabel + _padNumber(minutes) + mLabel; } else if (minutes > 0) { timeLeft = timeLeft + minutes + mLabel; } else { timeLeft = timeLeft + "<01" + mLabel; } return timeLeft; } function _genImg(imgInfo,itemId) { var str = ""; str += _spacer(5,1); if (imgInfo == 2) { //display Item image str += ''; } else if (imgInfo == 1) { // display camera icon str += ''; } else { // display spacer image str += ''; } str += _spacer(5,1); if (imgInfo > 0) { return _genItemLink(itemId,str); } else { return str; } } // display type 8 function _labels8() { _docWrite(''); _write(pictureLabel); _docWrite(''); _write(productLabel); _docWrite(''); _write(priceLabel); _docWrite(''); _write(_spacer(5,1)); _write(bidsLabel); _write(_spacer(5,1)); _docWrite(''); _write(timeLabel); _docWrite(''); _rowDiv(5); } function _disclaimer8() { _disclaimer(8, true); } function _item8(itemId, title, price, endTime, bidCount, imgInfo) { var timeColor = (isEnding ? endColor : fontColor); _docWrite(''); _docWrite(_genImg(imgInfo,itemId)); _docWrite(''); _docWrite(''); _write(_genItemLink(itemId, _cleanTitle(title))); _docWrite(''); _write("" + price + ""); _docWrite(''); _write((bidCount == 0 ? "-" : bidCount)); _docWrite(''); _writeWithColor(endTime, timeColor); _docWrite(''); _rowDiv(5); } function _eBaySniplet() { _alert("style 8"); _header(); _labels8(); _item8("5921795575", "MARX Best of The West 2 Horses, Jane, Johnny, Gear& Box", "$47.00", _getTimeLeft( new Date(2004,8,24,5,40,54)), 13,2); _item8("5921206495", "Vintage Marx Dr Mopp Camberwick Green Figure", "$53.90", _getTimeLeft( new Date(2004,8,24,6,36,53)), 1,2); _item8("5521430547", "Marx Dollhouse Bathroom Furniture", "$3.00", _getTimeLeft( new Date(2004,8,24,6,54,7)), 1,2); _item8("5521431706", "Marx Dollhouse Living Room/Den Furniture", "$10.00", _getTimeLeft( new Date(2004,8,24,7,3,9)), 0,2); _item8("6928243833", "WHY A DUCK? Marx Bros/Hirschfeld + Scrapbook", "$7.99", _getTimeLeft( new Date(2004,8,24,7,7,17)), _genItemLink( 6928243833, binIcon) ,2); _item8("5521432265", "2 pcs. Marx Dollhouse Living Room/Den Furniture", "$3.00", _getTimeLeft( new Date(2004,8,24,7,8,8)), 1,2); _item8("5921213072", "Vintage Marx Shootin Shell Western Cap Gun and Bullets", "$42.50", _getTimeLeft( new Date(2004,8,24,7,39,12)), 13,2); _item8("5922165134", "EARLY MARX ??AMERICAN INDIAN?? WITH LOT OF EXTRAS", "$10.49", _getTimeLeft( new Date(2004,8,24,7,40,23)), 2,2); _item8("3840684963", "RONALD COLMAN/VINCENT PRICE/GROUCHO MARX LOBBY CARD", "$10.00", _getTimeLeft( new Date(2004,8,24,8,0,0)), 1,2); _item8("3840685232", "RONALD COLMAN/VINCENT PRICE/GROUCHO MARX LOBBY CARD", "$10.00", _getTimeLeft( new Date(2004,8,24,8,0,0)), 0,2); _item8("6325114810", "THE MARX BROTHERS DUCK SOUP LASERDISC LASER DISC", "$7.99", _getTimeLeft( new Date(2004,8,24,8,6,10)), 0,2); _item8("5521440946", "MARX PLAY DRESSER/MIRROR CHILDS TOY DRESSER", "$4.99", _getTimeLeft( new Date(2004,8,24,8,14,40)), 0,2); _item8("5921814358", "MARX GERONIMO MIB W/SEALED ACCESSORIES", "$227.75", _getTimeLeft( new Date(2004,8,24,8,40,41)), 11,2); _item8("5921815011", "MARX JANE WEST MIB W/SEALED ACCESSORIES", "$237.50", _getTimeLeft( new Date(2004,8,24,8,45,59)), 15,2); _item8("5921815021", "MARX 75 WATT TRANSFORMER W/WOOD HANDLE INTACT", "$37.01", _getTimeLeft( new Date(2004,8,24,8,46,5)), 6,2); _item8("5921815841", "MARX MIKE HAZARD MIB W/SEALED ACCESSORIES", "$762.00", _getTimeLeft( new Date(2004,8,24,8,52,0)), 22,2); _item8("5921816328", "MARX CHIEF CHEROKEE MIB W/SEALED ACCESSORIES", "$129.50", _getTimeLeft( new Date(2004,8,24,8,55,45)), 5,2); _item8("5921817185", "MARX DESERT PATROL PISTOL MINT ON CARD", "$12.57", _getTimeLeft( new Date(2004,8,24,9,2,45)), 2,2); _item8("5921817603", "WW2 Marx Tim-Mee Aurora 1950s Soldiers", "$9.99", _getTimeLeft( new Date(2004,8,24,9,6,36)), 0,2); _item8("5921817733", "MARX WWII GENERALS FIGURES", "$34.22", _getTimeLeft( new Date(2004,8,24,9,7,19)), 5,2); _footer(_disclaimer8); } document.write(_getSniplet());